#pragma once

#include "NFServerComm/NFServerCommon/NFIDescStore.h"
#include "NFServerComm/NFServerCommon/NFIDescTemplate.h"
#include "NFLogicCommon/NFDescStoreMacrosDefine.h"
#include "NFLogicCommon/NFDescStoreTypeDefines.h"
#include "E_TreasureMap.nanopb.h"
#ifndef MAX_TREASUREMAP_TREASUREMAPPROBABILITY_NUM
#define MAX_TREASUREMAP_TREASUREMAPPROBABILITY_NUM 20
#endif

class TreasureMapProbabilityDesc : public NFI_DESC_TEMPLATE_MACRO(TreasureMapProbabilityDesc, E_TreasureMapProbability, EOT_CONST_TREASUREMAP_TREASUREMAPPROBABILITY_DESC_ID, MAX_TREASUREMAP_TREASUREMAPPROBABILITY_NUM)
public:
	TreasureMapProbabilityDesc();
	virtual ~TreasureMapProbabilityDesc();
	int CreateInit();
	int ResumeInit();
public:
	int Load(NFResDb *pDB) override;
	int LoadDB(NFResDb *pDB) override;
	int CheckWhenAllDataLoaded() override;
};
